//
//  NSString+XDQiniu.m
//  kabu
//
//  Created by XiangDongMBP on 2017/6/23.
//  Copyright © 2017年 East. All rights reserved.
//

#import "NSString+XDQiniu.h"
#import <UIKit/UIKit.h>

@implementation NSString (XDQiniu)

- (NSString *)xd_qiniuImgUrlWithMaxWidth:(NSInteger)width {
    NSLog(@"当前设备的scale = %f", [UIScreen mainScreen].scale);
    return [NSString stringWithFormat:@"%@?imageView2/2/w/%ld/ignore-error/1", self, (long)(width * [UIScreen mainScreen].scale)];
}

@end
